package edu.sctu.xiangkun.day201505.day20150524;

/**
 * Created by lenovo on 2015/5/24.
 */
import java.util.ArrayList;
import java.util.List;


public class Students {



    private List<Student> list1 = new ArrayList<>();
    private List<Student> list2 = new ArrayList<>();
    private  List<Student> list3 = new ArrayList<>();
    private  List<Student> list4 = new ArrayList<>();


    public Students(){

        List course = new TextCourse().TextCourse();
        for (int i = 0; i < 4; i++) {

            List corseList = new ArrayList<>();
            corseList.add(course.get((int)(Math.random()*7)));
            corseList.add(course.get((int)(Math.random()*7)));
            Student student = new Student(10086+i,"张三"+i,18,"男","成都",60+i,corseList);
            list1.add(student);
        }

        for (int i = 0; i < 4; i++) {
            List corseList = new ArrayList<>();
            corseList.add(course.get((int)(Math.random()*7)));
            corseList.add(course.get((int)(Math.random()*7)));
            Student student = new Student(10091+i,"李四"+i,22,"男","成都",50+i,corseList);
            list2.add(student);
        }

        for (int i = 0; i < 4; i++) {

            List corseList = new ArrayList<>();
            corseList.add(course.get((int)(Math.random()*7)));
            corseList.add(course.get((int)(Math.random()*7)));
            Student student = new Student(10096+i,"王五"+i,19,"女","成都",80+i,corseList);
            list3.add(student);
        }

        for (int i = 0; i < 4; i++) {

            List corseList = new ArrayList<>();
            corseList.add(course.get((int)(Math.random()*7)));
            corseList.add(course.get((int)(Math.random()*7)));
            Student student = new Student(10101+i,"刘一"+i,20,"女","成都",70+i,corseList);
            list4.add(student);
        }




    }

    public List<Student> get1(){
        return list1;
    }

    public List<Student> get2(){
        return list2;
    }

    public List<Student> get3(){
        return list3;
    }

    public List<Student> get4(){
        return list4;
    }




}

